package com.sky.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @Author BUPT-Dingchang
 * @Create 2024/3/10 16:58
 * ClassName: WebSocketConfiguration
 * Description:  WebSocket配置类，用于注册WebSocket的Bean
 */

@Configuration
public class WebSocketConfiguration {

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
